package com.dly.blog.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/13 0:19
 */
@Getter
public enum FileType implements IEnum<Integer> {


    OTHER("其他", 0),

    USER_AVATAR("用户头像", 1),

    SHOW("空间图片", 2),

    CONTENT_IMG("内容图片", 3),

    COMMENT_IMG("评论图片", 4);

    FileType(String key, Integer value){
        this.key = key;
        this.value = value;
    }

    private final String key;

    private final Integer value;

    @Override
    public Integer getValue() {
        return value;
    }
}
